//
//  DoctorCell.m
//  International_Hospital
//
//  Created by 李建强 on 16/7/7.
//  Copyright © 2016年 LiYiLin. All rights reserved.
//

#import "DoctorCell.h"

#import "conditTbaleViewController.h"
#import "IntroTableViewController.h"
@interface DoctorCell()
@property (nonatomic,strong)conditTbaleViewController *conController;
@property (nonatomic,strong)IntroTableViewController *introController;
@end

@implementation DoctorCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.conController = [[conditTbaleViewController alloc]init];
        self.introController = [[IntroTableViewController alloc]init];
    }
    return self;
}

-(void)setGroup:(BOOL)group{
    
    _group = group;
    if (group) {
        [self.contentView addSubview:self.introController.view];

    }else {
        
        [self.contentView addSubview:self.conController.view];
    }
}

-(void)layoutSubviews{
    
    [super layoutSubviews];
    self.conController.view.frame=self.contentView.bounds;

    self.introController.view.frame = self.contentView.bounds;

    
}


@end
